from langgraph.graph import StateGraph
from typing_extensions import TypedDict

class OverallState(TypedDict):
    user_input:str
    agent_response:str

class ToolState(TypedDict):
    api_key:str
    tool_config:str

def tool_node(state:ToolState) -> OverallState:
    return {"agent_response":"my response"}

builder = StateGraph(OverallState)
builder.add_node(tool_node)